/*
 * Copyright (C) 2010-2011 Comcast Cable.  All Rights Reserved.
 */
package com.hercules.android.receiver.model.objects;

/**
 * This class represents the animation that interpolates of object's position from to a new value over time.
 * <p>
 * It is a simple JavaBean (POJO) that provides getters and setters for all private attributes and performs no argument
 * validation in the setters.
 * <p>
 * AndroidAssembly3 this class was added during Android Assembly 3.
 * <p>
 * <b>Thread safety:</b> This class is mutable and not thread safe.
 *
 * @author TCSASSEMBLER
 * @version 1.0
 */
public class XREAbsoluteTranslationAnimation extends XREAnimationResource {
    /**
     * The desired position along the x-axis at the end of the animation, in pixels.
     * <p>
     * Can be any value.
     * <p>
     * Has getter and setter.
     */
    private int x;

    /**
     * The desired position along the y-axis at the end of the animation, in pixels.
     * <p>
     * Can be any value.
     * <p>
     * Has getter and setter.
     */
    private int y;

    /**
     * <p>
     * Creates new instance of {@link XREAbsoluteTranslationAnimation} class.
     * </p>
     */
    public XREAbsoluteTranslationAnimation() {
        // empty constructor
    }

    /**
     * Gets the desired position along the x-axis at the end of the animation, in pixels.
     *
     * @return the desired position along the x-axis at the end of the animation, in pixels
     */
    public int getX() {
        return x;
    }

    /**
     * Sets the desired position along the x-axis at the end of the animation, in pixels.
     *
     * @param x the desired position along the x-axis at the end of the animation, in pixels
     */
    public void setX(int x) {
        this.x = x;
    }

    /**
     * Gets the desired position along the y-axis at the end of the animation, in pixels.
     *
     * @return the desired position along the y-axis at the end of the animation, in pixels
     */
    public int getY() {
        return y;
    }

    /**
     * Sets the desired position along the y-axis at the end of the animation, in pixels.
     *
     * @param y the desired position along the y-axis at the end of the animation, in pixels
     */
    public void setY(int y) {
        this.y = y;
    }
}
